package com.johnny.xia.redis.ranking;

import java.util.Set;

import redis.clients.jedis.Jedis;

public class ReadRank{
    public static void main(String[] args){
        String key = "rank";
        Jedis jedis = new Jedis("127.0.0.1", 6379);
        long count = jedis.zcard(key);
//        long count = jedis.zcard(key);
        Set<String> values = jedis.zrevrange(key, 0, 99);
//        Set<String> values = jedis.zrevrange(key, count-100, count);
        System.err.println("count : "+ count+","+values.size()+":"+values);
    }
}
